package app.server.project.main.service.controller;

import app.server.project.core.msgdispatcher.TcpController;
import app.server.project.core.msgdispatcher.TcpReq;
import app.server.project.core.tcp.model.TcpReqModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@TcpController
@Slf4j
public class TcpDemoControl {


    @TcpReq(cmd = 1)
    public TcpReqModel doTest(Long id,String model){
        log.info("{}",model);
        return TcpReqModel.of(33,null);
    }

    @TcpReq(cmd = 1222)
    public TcpReqModel doTest1(Long id,TcpReqModel model){
        log.info("{}",model);
        return TcpReqModel.of(33,null);
    }
}
